﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using TR0217.ControlEx;
using TR0217.AboutToAdd;

namespace WindowsApplication1
{
    public partial class Form3 : CollapsiblePane
    {
        public Form3()
        {
            InitializeComponent();
        }

        private CenterLayoutEngine layoutEngine;
        public override System.Windows.Forms.Layout.LayoutEngine LayoutEngine
        {
            get
            {
                if (layoutEngine == null)
                {
                    layoutEngine = new CenterLayoutEngine(this, base.LayoutEngine);
                }

                return layoutEngine;
            }
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            DataTable _hbTable = new DataTable("hb");
            _hbTable.Columns.Add("名称", typeof(String));
            _hbTable.Columns.Add("ISO码", typeof(String));
            _hbTable.Columns.Add("汇率", typeof(Decimal));

            _hbTable.Rows.Add(new Object[] { "人民币", "CNY", 1.0 });
            _hbTable.Rows.Add(new Object[] { "美元", "USD", 6.8 });
        }
    }
}